package com.ruoyi.quartz.util;

import com.ruoyi.task.domain.KwTaskInfo;

public class TaskUtils {
    public static KwTaskInfo buildTask(Long hostId, Long pId, String taskType, String taskDesc, Integer stat){
        KwTaskInfo task = new KwTaskInfo();
        task.setJobId(hostId);
        task.setpId(pId);
        task.setTaskType(taskType);
        task.setTaskDesc(taskDesc);
        task.setTaskParams(String.valueOf(hostId));
        task.setTaskStat(stat);
        return  task;
    }
}
